package com.zlz.m3u8download.service;

import com.zlz.m3u8download.bean.TaskCacheResult;
import com.zlz.m3u8download.bean.entity.CacheM3u8Entity;

import java.io.IOException;
import java.util.List;

/**
 * @Author: zhulinzhong
 * @Date: 2024/12/4
 */
public interface CacheTaskService {
    /**
     * 快速生成代理m3u8文件
     * @param url
     * @return
     */
    TaskCacheResult fastCache(String url, Long userId) throws IOException;

    /**
     * 创建任务
     * @param vid
     * @param url
     * @return
     */
    List<CacheM3u8Entity> createCacheTask(String vid, String url, boolean fast, Long userId) throws IOException;
}
